package IC.Parser;

public class SyntaxError extends Exception {

	private static final long serialVersionUID = 1L;
	private int line;
	private Token token;


    public SyntaxError(int line, Token token) {         
        this.line = line; 
        this.token  = token;    
    } 

	public String toString(){
		return line + ": Syntax error: unexpected token " + token;
	}
}